﻿using Microsoft.EntityFrameworkCore;
using SimpleWebApi.Business.Service.Interface;
using SimpleWebApi.MyMigration.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleWebApi.Business.Service
{
    public class CompanyInfoService : BaseService, ICompanyInfoService
    {
        public CompanyInfoService(DbContext context) : base(context)
        {

        }

        public CompanyInfo GetCompany(int companyID)
        {
            var company = this.Context.Set<CompanyInfo>().Where(a => a.CompanyId == companyID).FirstOrDefault();
            return company;
        }
    }
}